<!DOCTYPE html>
<html xmlns: th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Cache-Control" content="max-age=300"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>我的订单 - shop</title>
    <meta name="Keywords" content="java,shopjava"/>
    <meta name="description" content="在shop中找到了29910件java的类似商品，其中包含了“图书”，“电子书”，“教育音像”，“骑行运动”等类型的java的商品。"/>
    <link rel="stylesheet" type="text/css" href="../css/base.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="../css/myjd.common.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="../css/myjd.order.css" media="all"/>
    <script type="text/javascript" src="../js/jquery-1.6.4.js"></script>

    <script src="../jq/AngularJs-1.3.10/angular.min.js"></script>
    <script src="../jq/AngularJs-1.3.10/angular.js"></script>
    <script src="../jq/jquery-3.2.1.min.js"></script>
</head>
<body>
<script type="text/javascript" src="../js/base-2011.js" charset="utf-8"></script>
<!-- header start -->
<!--<%&#45;&#45;<jsp:include page="commons/header.jsp" />&#45;&#45;%>-->
<script type="text/javascript" src="/../js/base-v1.js" charset="utf-8"></script>
<div id="shortcut-2013">
    <div class="w">
        <ul class="fl lh">
            <li class="fore1 ld" clstag="homepage|keycount|home2013|01a"><b></b><a href="javascript:addToFavorite()"
                                                                                   rel="nofollow">收藏shop</a></li>
        </ul>
        <ul class="fr lh">
            <li class="fore1" id="loginbar" clstag="homepage|keycount|home2013|01b">您好！欢迎来到shop！<a
                    href="javascript:login()">[登录]</a>&nbsp;<a href="javascript:regist()">[免费注册]</a></li>
            <li class="fore2 ld" clstag="homepage|keycount|home2013|01c">
                <s></s>
                <a href="http://jd2008.jd.com/JdHome/OrderList.aspx" rel="nofollow">我的订单</a>
            </li>
            <li class="fore2-1 ld" id="jd-vip">
                <s></s>
                <a target="_blank" rel="nofollow" href="http://vip.jd.com">会员俱乐部</a>
            </li>
            <li class="fore3 ld menu" id="app-jd" data-widget="dropdown" clstag="homepage|keycount|home2013|01d">
                <s></s><i></i><span class="outline"></span><span class="blank"></span>
                <a href="http://app.jd.com/" target="_blank">手机shop</a><b></b>
            </li>
            <li class="fore4 ld menu" id="biz-service" data-widget="dropdown" clstag="homepage|keycount|home2013|01e">
                <s></s>
                <span class="outline"></span>
                <span class="blank"></span>
                客户服务
                <b></b>
                <div class="dd">
                    <div><a href="http://help.jd.com/index.html" target="_blank">帮助中心</a></div>
                    <div><a href="http://myjd.jd.com/repair/orderlist.action" target="_blank" rel="nofollow">售后服务</a>
                    </div>
                    <div><a href="http://chat.jd.com/jdchat/custom.action" target="_blank" rel="nofollow">在线客服</a></div>
                    <div><a href="http://myjd.jd.com/opinion/list.action" target="_blank" rel="nofollow">投诉中心</a></div>
                    <div><a href="http://www.jd.com/contact/service.html" target="_blank">客服邮箱</a></div>
                </div>
            </li>
            <li class="fore5 ld menu" id="site-nav" data-widget="dropdown" clstag="homepage|keycount|home2013|01f">
                <s></s>
                <span class="outline"></span>
                <span class="blank"></span>
                网站导航
                <b></b>
                <div class="dd lh">
                    <dl class="item fore1">
                        <dt>特色栏目</dt>
                        <dd>
                            <div><a target="_blank" href="http://mobile.jd.com/index.do">shop通信</a></div>
                            <div><a target="_blank" href="http://jdstar.jd.com/">校园之星</a></div>
                            <div><a target="_blank" href="http://my.jd.com/personal/guess.html">为我推荐</a></div>
                            <div><a target="_blank" href="http://shipingou.jd.com/">视频购物</a></div>
                            <div><a target="_blank" href="http://club.jd.com/">shop社区</a></div>
                            <div><a target="_blank" href="http://read.jd.com/">在线读书</a></div>
                            <div><a target="_blank" href="http://diy.jd.com/">装机大师</a></div>
                            <div><a target="_blank" href="http://giftcard.jd.com/market/index.action">shopE卡</a></div>
                            <div><a target="_blank" href="http://channel.jd.com/jiazhuang.html">家装城</a></div>
                            <div><a target="_blank" href="http://dapeigou.jd.com/">搭配购</a></div>
                            <div><a target="_blank" href="http://xihuan.jd.com/">我喜欢</a></div>
                        </dd>
                    </dl>
                    <dl class="item fore2">
                        <dt>企业服务</dt>
                        <dd>
                            <div><a target="_blank" href="http://giftcard.jd.com/company/index">企业客户</a></div>
                            <div><a target="_blank" href="http://sale.jd.com/p10997.html">办公直通车</a></div>
                        </dd>
                    </dl>
                    <dl class="item fore3">
                        <dt>旗下网站</dt>
                        <dd>
                            <div><a target="_blank" href="http://en.jd.com/">English Site</a></div>
                        </dd>
                    </dl>
                </div>
            </li>
        </ul>
        <span class="clr"></span>
    </div>
</div>
<div class="w">
    <div id="nav-2013">
        <div id="categorys-2013" class="categorys-2014">
            <div class="mt ld">
                <h2><a href="http://www.jd.com/allSort.aspx" clstag="homepage|keycount|home2013|06a">全部商品分类<b></b></a>
                </h2>
            </div>
            <div id="_JD_ALLSORT" class="mc">
                <div class="item fore1">
						<span data-split="1"><h3>
								<a href="/products/1.html">图书、音像、电子书刊</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore2">
						<span data-split="1"><h3>
								<a href="/products/74.html">家用电器</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore3">
						<span data-split="1"><h3>
								<a href="/products/161.html">电脑、办公</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore4">
						<span data-split="1"><h3>
								<a href="/products/249.html">个护化妆</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore5">
						<span data-split="1"><h3>
								<a href="/products/290.html">钟表</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore6">
						<span data-split="1"><h3>
								<a href="/products/296.html">母婴</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore7">
						<span data-split="1"><h3>
								<a href="/products/378.html">食品饮料、保健食品</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore8">
						<span data-split="1"><h3>
								<a href="/products/438.html">汽车用品</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore9">
						<span data-split="1"><h3>
								<a href="/products/495.html">玩具乐器</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore10">
						<span data-split="1"><h3>
								<a href="/products/558.html">手机</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore11">
						<span data-split="1"><h3>
								<a href="/products/580.html">数码</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore12">
						<span data-split="1"><h3>
								<a href="/products/633.html">家居家装</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore13">
						<span data-split="1"><h3>
								<a href="/products/699.html">厨具</a>
							</h3>
							<s></s></span>
                </div>
                <div class="item fore14">
						<span data-split="1"><h3>
								<a href="/products/749.html">服饰内衣</a>
							</h3>
							<s></s></span>
                </div>
                <div class="extra">
                    <a {if="" pageconfig.ishome}clstag="homepage|keycount|home2013|0614a"
                       {="" if}="" href="http://www.jd.com/allSort.aspx">全部商品分类</a>
                </div>
            </div>
        </div>
        <div id="treasure" clstag="homepage|keycount|home2013|08a"></div>
        <ul id="navitems-2013">
            <li class="fore1" id="nav-home" clstag="homepage|keycount|home2013|07a"><a href="/">首页</a></li>
            <li class="fore2" id="nav-fashion" clstag="homepage|keycount|home2013|07b"><a href="http://fashion.jd.com/">服装城</a>
            </li>
            <li class="fore3" id="nav-chaoshi" clstag="homepage|keycount|home2013|07c"><a
                    href="http://channel.jd.com/chaoshi.html">食品</a></li>
            <li class="fore4" id="nav-tuan" clstag="homepage|keycount|home2013|07d"><a href="http://tuan.jd.com/"
                                                                                       target="_blank">团购</a></li>
            <li class="fore5" id="nav-auction" clstag="homepage|keycount|home2013|07e"><a href="http://auction.jd.com/">夺宝岛</a>
            </li>
            <li class="fore6" id="nav-shan" clstag="homepage|keycount|home2013|07f"><a href="http://red.jd.com/"
                                                                                       target="_blank">闪购</a></li>
            <li class="fore7" id="nav-jinrong" clstag="homepage|keycount|home2013|07g1"><a href="http://jr.jd.com/"
                                                                                           target="_blank">金融</a></li>
        </ul>
    </div>
</div>
</div>
<script type="text/javascript">
    (function () {
        if (pageConfig.navId) {
            var object = document.getElementById("nav-" + pageConfig.navId);
            if (object) object.className += " curr";
        }
    })();
</script>
<!-- header end -->

<div id="container" ng-app="myApp" ng-controller="myCtrl">

    <div class="w">

        <div id="main">
            <div class="g-0">
                <div id="content" class="c-3-5">
                    <div class="mod-main mod-comm" id="order01">
                        <div class="m m3" id="safeinfo" style="display:none"></div>
                        <div class="mt">
                            <h3>我的订单
                                <div class="layer-credit" id="creditPayShow" style="display:none">
                                    <a class="close" href="#none" clstag="click|keycount|orderinfo|baitiaoclose">关闭</a>
                                    <div class="cont">
                                        <span></span>
                                        <a class="go" href="#none" target="_blank"></a>
                                    </div>
                                </div>
                            </h3>
                        </div>
                        <div class="mc" id="order01">
                            <dl>
                                <dt>便利提醒：</dt>
                                <dd id="ordercount-waitPay" clstag="click|keycount|orderinfo|waitPay">待付款(${count})</dd>
                                <dd id="ordercount-waitReceive" clstag="click|keycount|orderinfo|waitReceive">
                                    待确认收货(${count})
                            </dl>
                        </div>
                    </div>
                    <div class="mod-main mod-comm lefta-box" id="order02">
                        <div class="mt">
                            <ul class="taborder">
                                <li>
                                    <div class="tyies-t">
                                        <strong class="ftx-01">全部订单</strong><b></b>
                                    </div>
                                    <div class="tyies-c">
                                        <div class="close"></div>
                                        <div class="filter-item">
                                            <span class="label">不限：</span>
                                            <div class="item-con">
                                                <a href="list.action?t=&amp;d=1&amp;s=4096" target="_self">全部类型</a>
                                            </div>
                                        </div>
                                        <div class="filter-item">
                                            <span class="label">普通：</span>
                                            <div class="item-con">
                                                <a href="list.action?t=0-6-8-9-10-11-13-15-16-17-18-19-21-22-23-24-25-32-33-41-42-49-54-56&amp;d=1&amp;s=4096"
                                                   target="_self">实物商品</a>
                                            </div>
                                        </div>
                                        <div class="filter-item">
                                            <span class="label">旅游：</span>
                                            <div class="item-con">
                                                <a href="list.action?t=35-83&amp;d=1&amp;s=4096" target="_self">机票</a>
                                                <a href="list.action?t=39&amp;d=1&amp;s=4096" target="_self">酒店</a>
                                                <a href="list.action?t=45&amp;d=1&amp;s=4096" target="_self">租车</a>
                                                <a href="list.action?t=47&amp;d=1&amp;s=4096" target="_self">度假</a>
                                                <a href="list.action?t=44&amp;d=1&amp;s=4096" target="_self">景点</a>
                                                <a href="list.action?t=46&amp;d=1&amp;s=4096" target="_self">火车</a>
                                            </div>
                                        </div>
                                        <div class="filter-item">
                                            <span class="label">充值：</span>
                                            <div class="item-con">
                                                <a href="list.action?t=34-62&amp;d=1&amp;s=4096" target="_self">游戏</a>
                                                <a href="list.action?t=37&amp;d=1&amp;s=4096" target="_self">手机充值</a>
                                            </div>
                                        </div>
                                        <div class="filter-item">
                                            <span class="label">票务：</span>
                                            <div class="item-con">
                                                <a href="list.action?t=43&amp;d=1&amp;s=4096" target="_self">电影票</a>
                                                <a href="list.action?t=53&amp;d=1&amp;s=4096" target="_self">演出票</a>
                                            </div>
                                        </div>
                                        <div class="filter-item">
                                            <span class="label">数字：</span>
                                            <div class="item-con">
                                                <a href="list.action?t=38&amp;d=1&amp;s=4096" target="_self">电子书</a>
                                                <a href="list.action?t=58&amp;d=1&amp;s=4096" target="_self">数字音乐</a>
                                                <a href="list.action?t=57&amp;d=1&amp;s=4096" target="_self">应用商店</a>
                                            </div>
                                        </div>
                                        <div class="filter-item">
                                            <span class="label">其他：</span>
                                            <div class="item-con">
                                                <a href="list.action?t=36&amp;d=1&amp;s=4096" target="_self">彩票</a>
                                                <a href="list.action?t=28-29-201&amp;d=1&amp;s=4096"
                                                   target="_self">团购</a>
                                                <a href="list.action?t=48-64-65&amp;d=1&amp;s=4096"
                                                   target="_self">保险</a>
                                                <a href="list.action?t=2&amp;d=1&amp;s=4096" target="_self">夺宝岛</a>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                            <div class="extra-r">
                                <div class="search-01">
                                    <input id="ip_keyword" name="" type="text" class="s-itxt" placeholder="商品名称、商品编号、订单编号"
                                           onfocus="if (this.value==this.defaultValue) this.value=''"
                                           onblur="if (this.value=='') this.value=this.defaultValue"
                                           onkeydown="javascript:if(event.keyCode==13) OrderSearch('ip_keyword');">
                                    <!--input name="" type="button" value="查 询" class="btn-13" onclick="OrderSearch('ip_keyword')" clstag="click|keycount|orderinfo|search"/-->
                                    <a href="javascript:;" class="btn-13" onclick="OrderSearch('ip_keyword')"
                                       clstag="click|keycount|orderinfo|search">查 询</a>
                                </div>
                            </div>
                        </div>
                        <div class="mc">
                            <table class="tb-void">
                                <colgroup>
                                    <col width="290">
                                    <col width="90">
                                    <col width="110">
                                    <col width="100">
                                    <col width="100">
                                    <col width="130">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>订单信息</th>
                                    <th>收货人</th>
                                    <th>订单金额</th>
                                    <th>
                                        <select id="submitDate" name="" class="sele">
                                            <option class="month" value="1" selected="">最近三个月</option>
                                            <option class="month" value="2">今年内</option>
                                            <option class="month" value="2018">2018年</option>
                                            <option class="month" value="2017">2017年</option>
                                            <option class="month" value="2016">2016年</option>
                                            <option class="month" value="3">2015年以前</option>
                                        </select>
                                    </th>
                                    <th>
                                        <select id="orderState" name="" class="sele">
                                            <option value="4096" selected="">全部状态</option>
                                            <option value="1">等待付款</option>
                                            <option value="32">已付款</option>
                                            <option value="128">已发货</option>
                                            <!-- <option value="0">处理中</option> -->
                                            <!--<option value="2048">有效</option> -->
                                            <option value="1024">已完成</option>
                                            <option value="-1">已取消</option>
                                        </select>
                                    </th>
                                    <th>操作</th>
                                </tr>
                                </thead>

                                <script type="text/javascript" language="javascript">
                                    // $("#submitDate").change(function () {
                                    //     var sDate = $("#submitDate option[@selected]").val();
                                    //     window.location = 'list.action?d='+sDate+'&s=4096&t=';
                                    // });
                                    $("#submitDate").change(function ($this) {
                                        console.log($("#submitDate").val())
                                        console.log($("#orderState").val())
                                        var params = {
                                            submitDate:$("#submitDate").val(),
                                            orderState:$("#orderState").val()
                                        }

                                        $.ajax({
                                            // url:"http://localhost:8010/order/query?page=1",
                                            // type:'post',
                                            // data:JSON.stringify(params),
                                            // contentType:'application/json',


                                            url: 'http://localhost:8010/order/query?page=1',
                                            data : params,
                                            dataType: 'json',
                                            type: 'post',

                                            success:function (result) {
                                                console.log(result);
                                                var data = result.message;
                                                $(".tfbody").text("");
                                                f(data);
                                            }

                                        });

                                    });

                                    $("#orderState").change(function () {
                                        // var oState = $("#orderState option[]").val();
                                        // window.location = 'list.action?d=1&s=' + oState + '&t=';
                                        console.log($("#submitDate").val())
                                        console.log($("#orderState").val())
                                        var params = {
                                            submitDate:$("#submitDate").val(),
                                            orderState:$("#orderState").val(),

                                        }

                                        $.ajax({

                                            url: 'http://localhost:8010/order/query?page=1',
                                            data : params,
                                            dataType: 'json',
                                            type: 'post',

                                            success:function (result) {
                                                console.log(result);
                                                var data = result.message;
                                                $(".tfbody").text("");
                                                f(data);
                                            }

                                        });
                                    });
                                </script>
                                <tbody id="tb-3965995220">



                            </table>
                            <div class="mt10">
                                <div class="pagin fr">
                                    <!--  <span class="text">共20条记录</span>    <span class="text">共1页</span> -->
                                    <span class="prev-disabled">上一页<b></b></span>

                                    <!-- <span class="prev-disabled">首页</span> -->
                                    <a class="hend"></a><!-- <span class="next-disabled">末页</span>  -->
                                    <span class="next-disabled">下一页<b></b></span>

                                </div>
                                <div class="clr"></div>
                            </div>
                        </div>


                    </div>
                </div>
            </div>
            <div id="left" class="g-3-5 c-0">
                <!--js 加载异步加载的左侧菜单 -->
                <div id="menu">
                    <h3>我的交易</h3>
                    <dl class="fore1">
                        <dt>
                            <a target="_blank" clstag="homepage|keycount|home2013|hdd" id="_MYJD_ordercenter"
                               href="http://order.jd.com/center/list.action" class="curr">我的订单</a>
                        </dt>
                    </dl>
                    <dl class="fore2">
                        <dt>
                            <a target="_blank" clstag="homepage|keycount|home2013|hyushou" id="_MYJD_yushou"
                               href="http://yushou.jd.com/member/qualificationList.action">我的预售</a>
                        </dt>
                    </dl>
                    <dl class="fore3">
                        <dt>
                            <a target="_blank" clstag="homepage|keycount|home2013|hbdsh" id="_MYJD_locallife"
                               href="http://life.jd.com/localOrder/iniOrder.do">我的本地生活</a>
                        </dt>
                    </dl>
                    <dl class="fore4">
                        <dt>
                            <a target="_blank" clstag="homepage|keycount|home2013|hdqs" id="_MYJD_ding"
                               href="http://ding.jd.com/plan/showPlans.action">我的定期送</a>
                        </dt>
                    </dl>
                    <dl class="fore5">
                        <dt>
                            <a target="_blank" clstag="homepage|keycount|home2013|htg" id="_MYJD_tuan"
                               href="http://tuan.jd.com/order/index.php">我的团购</a>
                        </dt>
                    </dl>
                    <dl class="fore6">
                        <dt>
                            <a target="_blank" clstag="homepage|keycount|home2013|hjg" id="_MYJD_protection"
                               href="http://jiabao.jd.com/protecting">价格保护</a>
                        </dt>
                    </dl>
                    <dl class="fore7">
                        <dt class="hc">
                            <b></b><a target="_blank" id="_MYJD_gz" href="#none">我的关注</a>
                        </dt>
                        <dd class="fore1">
                            <div class="item" id="_MYJD_product">
                                <a target="_blank" clstag="homepage|keycount|home2013|hgz"
                                   href="http://t.jd.com/home/follow">关注的商品</a></div>
                        </dd>
                        <dd class="fore2">
                            <div class="item" id="_MYJD_vender"><a target="_blank"
                                                                   clstag="homepage|keycount|home2013|hdp"
                                                                   href="http://t.jd.com/vender/followVenderList.action">关注的店铺</a>
                            </div>
                        </dd>
                        <dd class="fore3">
                            <div class="item" id="_MYJD_activity"><a target="_blank"
                                                                     clstag="homepage|keycount|home2013|hhd"
                                                                     href="http://t.jd.com/activity/followActivityList.action">关注的活动</a>
                            </div>
                        </dd>
                        <dd class="fore4 last ">
                            <div class="item" id="_MYJD_history"><a target="_blank"
                                                                    clstag="homepage|keycount|home2013|hll"
                                                                    href="http://my.jd.com/history/list.html">浏览历史&nbsp;<img
                                    width="24" height="11" src="../images/myjd-new-ico.png"></a></div>
                        </dd>
                    </dl>
                    <dl class="fore8">
                        <dt class="hc"><b></b>
                            <a target="_blank" id="_MYJD_zc" href="#none">我的资产</a>
                        </dt>
                        <dd class="fore1">
                            <div class="item" id="_MYJD_cashbox"><a target="_blank"
                                                                    clstag="homepage|keycount|home2013|hjk"
                                                                    href="http://jinku.pay.jd.com/xjk/income.action">我的小金库</a>
                            </div>
                        </dd>
                        <dd class="fore2">
                            <div class="item" id="_MYJD_credit"><a clstag="homepage|keycount|home2013|hbt" tag="213"
                                                                   href="http://baitiao.jd.com/creditUser/record">shop白条</a>&nbsp;
                            </div>
                        </dd>
                        <dd class="fore3">
                            <div class="item" id="_MYJD_tx"><a target="_blank" clstag="homepage|keycount|home2013|htx"
                                                               href="http://mobile.jd.com/yyswt/myjd.do">shop通信</a>
                            </div>
                        </dd>
                        <dd class="fore4">
                            <div class="item" id="_MYJD_balance"><a target="_blank"
                                                                    clstag="homepage|keycount|home2013|hye"
                                                                    href="http://mymoney.jd.com/finance/recently.action">余额</a>
                            </div>
                        </dd>
                        <dd class="fore5">
                            <div class="item" id="_MYJD_ticket"><a target="_blank"
                                                                   clstag="homepage|keycount|home2013|hyh"
                                                                   href="http://quan.jd.com/user_quan.action">优惠券</a>
                            </div>
                        </dd>
                        <dd class="fore6">
                            <div class="item" id="_MYJD_card"><a target="_blank" clstag="homepage|keycount|home2013|he"
                                                                 href="http://giftcard.jd.com/giftcard/index.action">shop卡/E卡</a>
                            </div>
                        </dd>
                        <dd class="fore7 last">
                            <div class="item" id="_MYJD_bean"><a target="_blank" clstag="homepage|keycount|home2013|hjd"
                                                                 href="http://bean.jd.com/myJingBean/list">京豆</a>
                            </div>
                        </dd>
                    </dl>
                    <dl class="fore9 last ">
                        <dt class="hc"><b></b>
                            <a target="_blank" id="_MYJD_fw" href="#none">客户服务</a>
                        </dt>
                        <dd class="fore1">
                            <div class="item" id="_MYJD_repair"><a target="_blank"
                                                                   clstag="homepage|keycount|home2013|hfx"
                                                                   href="http://myjd.jd.com/repair/orderlist.action">返修退换货</a>
                            </div>
                        </dd>
                        <dd class="fore2">
                            <div class="item" id="_MYJD_refundment"><a target="_blank"
                                                                       clstag="homepage|keycount|home2013|hqx"
                                                                       href="http://rps.fm.jd.com/rest/refund/refundList">取消订单记录</a>
                            </div>
                        </dd>
                        <dd class="fore3 last ">
                            <div class="item" id="_MYJD_complaint"><a target="_blank"
                                                                      clstag="homepage|keycount|home2013|htx"
                                                                      href="http://myjd.jd.com/opinion/orderList.action">我的投诉</a>
                            </div>
                        </dd>
                    </dl>
                </div>
                <div id="da-game" class="da-box m"><a
                        href="http://c.nfa.jd.com/adclick?sid=14&amp;cid=720&amp;aid=4497&amp;bid=0&amp;unit=85943&amp;advid=131939&amp;guv=&amp;url=http://wan.jd.com/yeyou/play.html?gameId=86&amp;gateWayId=s40"><img
                        width="100%" src="../images/547e6a57N75c2f016.gif" alt=""></a>
                </div>
                <div id="da-home" class="da-box"><a
                        href="http://c.nfa.jd.com/adclick?sid=2&amp;cid=102&amp;aid=413&amp;bid=8305&amp;unit=65429&amp;advid=166662&amp;guv=&amp;url=http://vivoshop.jd.com"
                        target="_blank">
                    <img width="100%" height="100%" alt="" app="image:poster" src="../images/549d03d0N59b1f026.jpg"></a>
                </div>
            </div>
            <span class="clr"></span>
        </div>
    </div>
</div>


<!-- footer start -->
<!--<jsp:include page="commons/footer.jsp" />-->
<div class="w" clstag="homepage|keycount|home2013|37a">
    <div id="service-2013">
        <dl class="fore1">
            <dt><b></b><strong>购物指南</strong></dt>
            <dd>
                <div><a href="http://help.jd.com/help/question-56.html" target="_blank" rel="nofollow">购物流程</a></div>
                <div><a href="http://help.jd.com/help/question-57.html" target="_blank" rel="nofollow">会员介绍</a></div>
                <div><a href="http://help.jd.com/help/question-181.html" target="_blank" rel="nofollow">团购/机票</a></div>
                <div><a href="http://help.jd.com/help/question-61.html" target="_blank" rel="nofollow">常见问题</a></div>
                <div><a href="http://help.jd.com/help/question-63.html" target="_blank" rel="nofollow">大家电</a></div>
                <div><a href="http://help.jd.com/index.html" target="_blank" rel="nofollow">联系客服</a></div>
            </dd>
        </dl>
        <dl class="fore2">
            <dt><b></b><strong>配送方式</strong></dt>
            <dd>
                <div><a href="http://help.jd.com/help/question-64.html" target="_blank" rel="nofollow">上门自提</a></div>
                <div><a href="http://help.jd.com/help/question-360.html" target="_blank" rel="nofollow">211限时达</a></div>
                <div><a href="http://help.jd.com/help/distribution-768.html" target="_blank" rel="nofollow">配送服务查询</a>
                </div>
                <div><a href="http://help.jd.com/help/question-892.html#help2215" target="_blank"
                        rel="nofollow">配送费收取标准</a></div>
                <div><a href="http://market.jd.com/giftcard/index.html#one5" target="_blank" rel="nofollow">如何送礼</a>
                </div>
                <div><a href="http://en.jd.com/chinese.html" target="_blank">海外配送</a></div>
            </dd>
        </dl>
        <dl class="fore3">
            <dt><b></b><strong>支付方式</strong></dt>
            <dd>
                <div><a href="http://help.jd.com/help/question-67.html" target="_blank" rel="nofollow">货到付款</a></div>
                <div><a href="http://help.jd.com/help/question-68.html" target="_blank" rel="nofollow">在线支付</a></div>
                <div><a href="http://help.jd.com/help/question-71.html" target="_blank" rel="nofollow">分期付款</a></div>
                <div><a href="http://help.jd.com/help/question-69.html" target="_blank" rel="nofollow">邮局汇款</a></div>
                <div><a href="http://help.jd.com/help/question-70.html" target="_blank" rel="nofollow">公司转账</a></div>
            </dd>
        </dl>
        <dl class="fore4">
            <dt><b></b><strong>售后服务</strong></dt>
            <dd>
                <div><a href="http://myjd.jd.com/afs/help/afshelp.action" target="_blank" rel="nofollow">售后政策</a></div>
                <div><a href="http://help.jd.com/help/question-99.html" target="_blank" rel="nofollow">价格保护</a></div>
                <div><a href="http://help.jd.com/help/question-100.html" target="_blank" rel="nofollow">退款说明</a></div>
                <div><a href="http://myjd.jd.com/repair/repairs.action" target="_blank" rel="nofollow">返修/退换货</a></div>
                <div><a href="http://help.jd.com/help/question-881.html" target="_blank" rel="nofollow">取消订单</a></div>
            </dd>
        </dl>
        <dl class="fore5">
            <dt><b></b><strong>特色服务</strong></dt>
            <dd>
                <div><a href="http://help.jd.com/help/question-79.html" target="_blank">夺宝岛</a></div>
                <div><a href="http://help.jd.com/help/question-86.html" target="_blank">DIY装机</a></div>
                <div><a href="http://fuwu.jd.com/" target="_blank" rel="nofollow">延保服务</a></div>
                <div><a href="http://giftcard.jd.com/market/index.action" target="_blank" rel="nofollow">shopE卡</a>
                </div>
                <div><a href="http://help.jd.com/help/question-91.html" target="_blank" rel="nofollow">节能补贴</a></div>
                <div><a href="http://mobile.jd.com/" target="_blank" rel="nofollow">shop通信</a></div>
            </dd>
        </dl>
        <div class="fr">
            <div class="sm" id="branch-office">
                <div class="smt">
                    <h3>shop自营覆盖区县</h3>
                </div>
                <div class="smc">
                    <p>shop已向全国1859个区县提供自营配送服务，支持货到付款、POS机刷卡和售后上门服务。</p>
                    <p class="ar"><a href="http://help.jd.com/help/distribution-768.html"
                                     target="_blank">查看详情&nbsp;></a></p>
                </div>
            </div>
        </div>
        <span class="clr"></span>
    </div>
</div>
<div class="w" clstag="homepage|keycount|home2013|38a">
    <div id="footer-2013">
        <div class="links"><a href="http://www.jd.com/intro/about.aspx" target="_blank" rel="nofollow">关于我们</a>|<a
                href="http://www.jd.com/contact/" target="_blank" rel="nofollow">联系我们</a>|<a
                href="http://zhaopin.jd.com/" target="_blank" rel="nofollow">人才招聘</a>|<a
                href="http://www.jd.com/contact/joinin.aspx" target="_blank" rel="nofollow">商家入驻</a>|<a
                href="http://jzt.jd.com" target="_blank" rel="nofollow">营销中心</a>|<a href="http://app.jd.com/"
                                                                                    target="_blank" rel="nofollow">手机shop</a>|<a
                href="http://club.jd.com/links.aspx" target="_blank">友情链接</a>|<a href="http://media.jd.com/"
                                                                                 target="_blank">销售联盟</a>|<a
                target="_blank" href="http://club.jd.com/">shop社区</a>|<a target="_blank" href="http://gongyi.jd.com">shop公益</a>|<a
                target="_blank" href="http://en.jd.com/">English Site</a></div>
    </div>
</div>
<script type="text/javascript" src="../js/jquery-1.6.4.js"></script>
<script type="text/javascript" src="../js/jquery-extend.js"></script>
<script type="text/javascript" src="../js/lib-v1.js" charset="utf-8"></script>
<script type="text/javascript" src="../js/shop.js" charset="utf-8"></script>
<script type="text/javascript"> (function () {
    var A = "<strong>热门搜索：</strong><a href='http://sale.jd.com/act/OfHQzJ2GLoYlmTIu.html' target='_blank' style='color:#ff0000' clstag='homepage|keycount|home2013|03b1'>校园之星</a><a href='http://sale.jd.com/act/aEBHqLFMfVzDZUvu.html' target='_blank'>办公打印</a><a href='http://www.jd.com/pinpai/878-12516.html' target='_blank'>美菱冰箱</a><a href='http://sale.jd.com/act/nuzKb6ZiYL.html' target='_blank'>无肉不欢</a><a href='http://sale.jd.com/act/ESvhtcAJNbaj.html' target='_blank'>万件好货</a><a href='http://sale.jd.com/act/nAqiWgU34frQolt.html' target='_blank'>iPhone6</a><a href='http://sale.jd.com/act/p0CmUlEFPHLX.html' target='_blank'>哈利波特</a><a href='http://sale.jd.com/act/FstSdb2vCOLa8BRi.html' target='_blank'>美模接驾</a>";
    var B = ["java", "apple", "LG G3", "天梭", "保温杯", "三个爸爸"];
    B = pageConfig.FN_GetRandomData(B);
    $("#hotwords").html(A);
    var _searchValue = "${query}";
    if (_searchValue.length == 0) {
        _searchValue = B;
    }
    $("#key").val(_searchValue).bind("focus", function () {
        if (this.value == B) {
            this.value = "";
            this.style.color = "#333"
        }
    }).bind("blur", function () {
        if (!this.value) {
            this.value = B;
            this.style.color = "#999"
        }
    });
})();
</script>
<!-- footer end -->

<script>


        function OrderSearch() {
            console.log("输入框查询");

            var params = {
                keyWord:$("#ip_keyword").val(),
                submitDate:$("#submitDate").val(),
                orderState:$("#orderState").val()
            }

            $.ajax({

                url: 'http://localhost:8010/order/query?page=1',
                data : params,
                dataType: 'json',
                type: 'post',

                success:function (result) {

                    var orderList = result.message;
                    console.log(result.message);
                    var data = result.message;
                    $(".tfbody").text("");
                    f(data);

                }

            });

        }

    var app = angular.module('myApp', []);
    app.controller('myCtrl', function($scope) {

        // 进入页面时查询数据

        var params = {
            submitDate:$("#submitDate").val(),
            orderState:$("#orderState").val()
        }
        $.ajax({
            url:"http://localhost:8010/order/query?page=1",
            data : params,
            type:'post',
            dataType: 'json'

        }).done(function (result) {
            $scope.orders = result.message;
            console.log(result.message);
            var data = result.message;
            var page = 0;
            if (data.length / 5 < 1) {
                page = 1;
            }
            if (data.length > 5 && data.length % 5 != 0) {
                page = Math.ceil(data.length / 5);
            }
            if (data.length % 5 == 0) {
                page = data.length / 5;
            }
            console.log("页数:" + page);

            for (var i = 1; i <= page; i++) {
                var str = "";
                str = str + "<a class=\"current\">"+i+"</a>";
                $(".hend").append(str);
            }


            f(data);

        });


        // 便利提醒
        $.ajax({
            url:"http://localhost:8010/order/queryState",
            type:'get',
            contentType:'application/json'

        }).done(function (result) {

            console.log(result.message);
            $('#ordercount-waitPay').text("待付款:(" + result.message[0] + ")");
            $('#ordercount-waitReceive').text("待确认收货:(" + result.message[1] + ")");

        });


        // 分页---页数
        // $.ajax({
        //     url:"http://localhost:8010/order/queryCount",
        //     type:'get',
        //     contentType:'application/json'
        //
        // }).done(function (result) {
        //
        //     console.log(result.count);
        //
        //
        // });

    });





</script>

<script>
    function f(data) {

        for (var i =0 ; i < data.length; i++) {
            console.log(data[i].orderId);
            function pay_type() {
                if (data[i].paymentType === 1 ){
                    return "在线支付"
                } else if (data[i].paymentType === 2 ) {
                    return "活到付款"
                }
            }

            function status(){
                if (data[i].status === 1 ){
                    return "未付款"
                } else if (data[i].status === 2 ) {
                    return "已付款"
                } else if (data[i].status === 4 ) {
                    return "已发货"
                } else if (data[i].status === 5 ){
                    return "交易成功"
                }else if (data[i].status === 6 ){
                    return "交易关闭"
                }
            }

            var str2= "";
            for (var j = 0; j < data[i].orderItemList.length; j++) {
                var stt =
                    "                                                <a href=\"http://item.jd.com/1113410.html\" class=\"img-box\"" +
                    "                                                   clstag=\"click|keycount|orderinfo|order_product\" target=\"_blank\">" +
                    "                                                    <img title=\""+data[i].orderItemList[j].title+"\" width=\"50\" height=\"50\"" +
                    "                                                         src=\""+data[i].orderItemList[j].picPath+"\"" +
                    "                                                         class=\"err-product\">" +
                    "                                                </a>" ;
                str2 = str2 + stt;
            }
            var str1 = "           <tbody class=\"tfbody\">" +
                "                                    <tr class=\"tr-th\">" +
                "                                        <td colspan=\"6\">" +
                "                                            <span class=\"tcol1\">" +
                "                                                订单编号:" +
                "                                                <a name=\"orderIdLinks\" id=\"idUrl2538292730\" target=\"_blank\"" +
                "                                                   href=\"http://order.jd.com/normal/item.action?orderid=2538292730&amp;PassKey=769448C6BA99F1ADA8244BAE7BC60580\"" +
                "                                                   clstag=\"click|keycount|orderinfo|order_num\">"+data[i].orderId+"</a>" +
                "                                            </span>" +
                "                                            <span class=\"tcol3\">" +
                "                                                <a class=\"btn-im\" onclick=\"getPamsForChat()\" href=\"#none\" title=\"联系客服\"></a>" +
                "                                            </span>" +
                "                                        </td>" +
                "                                    </tr>" +
                "                                    <tr id=\"track2538292730\" oty=\"0,1,70\" class=\"tr-td\">" +
                "                                        <td>" +
                "                                            <div class=\"img-list\">" ;
            var str3 =
                "                                            </div>" +
                "                                        </td>" +
                "                                        <td>" +
                "                                            <div class=\"u-name\">"+data[i].orderShipping.receiverName+"</div>" +
                "                                        </td>" +
                "                                        <td>" +
                "                                            ￥"+data[i].payment+"<br>" +
                "                                            "+pay_type()+ "</span>"+"<br>" +
                "                                        </td>" +
                "                                        <td>" +
                "                                            <span class=\"ftx-03\"></span>" +
                "<input type=\"hidden\" id=\"datasubmit-2538292730\" value=\"2014-10-20 22:30:49\">" +data[i].createTime+
                "                                        </td>" +
                "                                        <td onclick=\"zhifu("+data[i].orderId+","+data[i].status+")\"><span class=\"ftx-03\" >"+status()+"</span></td>" +
                "                                        <td id=\"operate2538292730\" class=\"order-doi\" width=\"100\">" +
                "                                            <span id=\"pay-button-2538292730\" state=\"\"></span>" +
                "                                            <a target=\"_blank\"" +
                "                                               href=\"http://order.jd.com/normal/item.action?orderid=2538292730&amp;PassKey=769448C6BA99F1ADA8244BAE7BC60580\"" +
                "                                               clstag=\"click|keycount|orderinfo|order_check\"></a>" +
                "                                            <span id=\"order_comment\"></span>" +
                "                                            <span class=\"pop-recycle-a\">" +
                "                                            <a href=\"javascript:void(0)\" clstag=\"click|keycount|orderinfo|order_del\" onclick=\"ensureMoveOrderToRecycle("+data[i].orderId+")\">" +
                "                                                删除" +
                "                                            </a>" +
                "                                            </span>" +
                "                                            <span id=\"doi2538292730\">" +
                "                                                <br>" +
                "                                                <a href=\"http://club.jd.com/JdVote/TradeComment.aspx?ruleid=2538292730&amp;ot=0&amp;payid=1&amp;shipmentid=70\"" +
                "                                                target=\"_blank\" clstag=\"click|keycount|orderinfo|order_comment\">评价晒单</a>" +
                "                                                <br>" +
                "                                            </span>" +
                "                                            <a href=\"http://myjd.jd.com/repair/ordersearchlist.action?searchString=2538292730\"" +
                "                                                target=\"_blank\"" +
                "                                                clstag=\"click|keycount|orderinfo|order_repair\">申请返修/退换货</a>" +
                "                                            <a class=\"btn-again\" clstag=\"click|keycount|orderlist|buy\"" +
                "                                               href=\"http://cart.jd.com/cart/dynamic/reBuyForOrderCenter.action?wids=1113410,1222567&amp;nums=1,1&amp;rid=1419846299535\"" +
                "                                               target=\"_blank\">还要买</a>" +
                "                                        </td>" +
                "                                    </tr>" +
                "                                    </tbody>";

            var str = str1 + str2 + str3;
            $(".tb-void").append(str);

        }
    }

    function ensureMoveOrderToRecycle(orderId){
        var params = {
            orderId:orderId
        }
        $.ajax({
            url:"http://localhost:8010/order/delete",
            data : params,
            type:'post',
            dataType: 'json'

        }).done(function (result) {

            window.location.href="my-orders.html"

        });
    }



    function zhifu(orderId,text){

        window.location.href="/front/html/pay.html?orderId="+orderId +"&status="+text;

    }




</script>



</body>
</html>